package com.sc.nft.admin.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sc.nft.enums.PushManageTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * @author 刘国航
 * @since 2024/6/4 10:10
 */
@Data
public class PushManageAddEditPushRequest {

    @ApiModelProperty("推送id")
    private Long id;

    @ApiModelProperty("推送标题")
    @NotEmpty(message = "推送标题不能为空")
    private String pushTitle;

    @ApiModelProperty("推送内容")
    @NotEmpty(message = "推送内容不能为空")
    private String pushContent;

    @ApiModelProperty("推送图标")
    private String pushIcon;

    @ApiModelProperty("推送类型")
    @NotNull(message = "推送类型不能为空")
    private PushManageTypeEnum pushType;

    @ApiModelProperty("是否开启定时推送")
    @NotNull(message = "是否开启定时推送不能为空")
    private Boolean enableSchedulePush;

    @ApiModelProperty(value = "设置定时推送时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date schedulePushTime;

    @ApiModelProperty("推送标签列表")
    private List<Long> pushTagIdList;

}
